/**
 * 
 */
package controller;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * This controller is used to provide functionality for the home page.
 * 
 * @author Mularien
 *
 */
@Controller
public class HomeController {

    @RequestMapping(method = RequestMethod.GET, value = "/home.do")
    public void home() {
        System.out.println("Home");
    }

    @RequestMapping(method = RequestMethod.GET, value = "/login.do")
    public void login() {
        System.out.println("login");
    }

    @RequestMapping(method = RequestMethod.GET, value = "/account/changePassword.do")
    public void showChangePasswordPage() {
        System.out.println("account");
    }

    @RequestMapping(method = RequestMethod.GET, value = "/403.do")
    public void deniedPage() {
        System.out.println("403");
    }

    @RequestMapping(method = RequestMethod.GET, value = "/account/TrackPatient.do")
    public void trackPatient() {
        System.out.println("Track patient!!!!");
    }

    @RequestMapping(method = RequestMethod.GET, value = "/adminStaff/TrackStaff.do")
    public void trackStaff() {
        System.out.println("Track staff!!!!");
    }

    @RequestMapping(method = RequestMethod.GET, value = "/adminStaff/ViewAppointments.do")
    public void viewAppointment() {
        System.out.println("View appointment!!!!");
    }

    protected Authentication getAuthentication() {
        return SecurityContextHolder.getContext().getAuthentication();
    }

    @RequestMapping(method = RequestMethod.GET, value = "adminStaff/ViewLabTestings.do")
    public void viewLabTesting() {
        System.out.println("View lab testing!!!!");
    }

    @RequestMapping(method = RequestMethod.GET, value = "adminStaff/TrackResources.do")
    public void trackResources() {
        System.out.println("Track resources!!!!");
    }

    @RequestMapping(method = RequestMethod.GET, value = "doctor/PatientManagement.do")
    public void patientManagment() {
        System.out.println("Patient management!!!!");
    }

    @RequestMapping(method = RequestMethod.GET, value = "doctor/ViewMedicalHistories.do")
    public void viewMedicalHistories() {
        System.out.println("view medical histories!!!!");
    }

    @RequestMapping(method = RequestMethod.GET, value = "laboratory/TrackSamples.do")
    public void trackSamples() {
        System.out.println("Track Sample!!!!");
    }
}
